package com.erp.common.response;

import lombok.Data;

import java.io.Serializable;

@Data
public class ListVo<L> implements Serializable {

    private static final long serialVersionUID = -3145433032049851116L;
    /**
     * 返回数据列表
     */
    private L list;

    /**
     * 总记录数
     */
    private Long total;


    /**
     * 每页显示条数
     */
    private Long pageSize;

    /**
     * 当前页
     */
    private Long pageNum;

    public ListVo() {
    }

    public ListVo(L list) {
        this.list = list;
    }

    public ListVo(L list, Long total, Long pageSize, Long pageNum) {
        this.list = list;
        this.total = total;
        this.pageSize = pageSize;
        this.pageNum = pageNum;
    }
}